import instance from '../request'

export const getTagsData = (params) => {
    return instance({
        url: '/tags/getTags',
        method: 'GET',
        params
    })
}


export const changeTag = (data) => {
    return instance({
        url: '/tags/change',
        method: 'PUT',
        data
    })
}

export const tagsCreate = (data) => {
    return instance({
        url: '/tags/create',
        method: 'POST',
        data
    })
}

export const delTag = (id) => {
    return instance({
        url: '/tags/delete',
        method: 'DELETE',
        params: {
            id
        }
    })
}
